package com.th.coupon.common.vo.response;


import com.th.coupon.common.vo.ResultData;
import lombok.AllArgsConstructor;

/**
 * 异常错误信息以及错误码
 * @author 涂航
 */
@AllArgsConstructor
public enum  ExceptionResultData implements ResultData {
    PARAMETER_VALIDITY_FAILED(1000,"buildTemplate Param IS NOt Valid !"),
    TEMPLATE_IS_NOT_EXIST(1001,  "Template Is Not Exist !"),
    THE_TEMPLATE_NAME(1002,"Exist Same Name Template !"),
    NO_ACQUIRE_COUPON(5001,"Can Not Acquire Template From TemplateClient !"),
    COUPON_EXCEED_ASSIGN_LIMITATION(5002,"Exceed Template Assign Limitation !"),
    USER_COUPON_HAS_SOME_PROBLEM(5003,"User Coupon Has Some Problem,It is not SubCollection of Coupons !"),
    NOT_SUPPORT_TEMPLATE_CATEGORY(5004,"Not Support For More Template Category !!!"),
    CURCOUPONS_IS_NOT_EQUAL_CACHE(4003,"CurCoupons Is Not Equal To Cache !");


    Integer code;
    String message;

    @Override
    public Integer code() {
        return this.code;
    }
    @Override
    public String message() {
        return this.message;
    }

}
